{% extends "mybase2.html" %} 


{% block content %}
<body class="page">
    <h2 style="text-align:center;" >我是flask-APP主页</h2>
    <h2>
        <img  alt="Avatar" class="avatar" src="{{ url_for('static', filename='images/avatar.png') }}" >
    </h2>
    <nav>
        <ul>                   
            {% if current_user.is_authenticated %}
            <li><a href="{{ url_for('watchlist.settings') }}">watchlist APPs</a></li>

            <li><a href="{{ url_for('watchlist.logout') }}">退出登录</a></li>
            {% else %}
            <li><a href="{{ url_for('auth.register') }}">去注册</a></li>
            {% endif %}
         
        </ul>
    </nav>
</body>

{% endblock %}

{#

     <li><a href="{{ url_for('todo.index') }}">todo APP</a></li>
    <li><a href="{{ url_for('watchlist.index') }}">watchlist APP</a></li>

            
    
    <form method="post">
        {{ form.csrf_token }} {{ form.username.label }} {{ form.username }} <br />
        {{ form.password.label }} {{ form.password }} <br />
        {{ form.submit }}
    </form> 



    {% extends "base.html" %}

    {% block content %}
    <h1>Sign In</h1>
    <form action="" method="post">
        {{ form.hidden_tag() }}
        <p>
            {{ form.username.label }}<br>
            {{ form.username(size=32) }}<br>
            {% for error in form.username.errors %}
            <span style="color: red;">[{{ error }}]</span>
            {% endfor %}
        </p>
        <p>
            {{ form.password.label }}<br>
            {{ form.password(size=32) }}<br>
            {% for error in form.password.errors %}
            <span style="color: red;">[{{ error }}]</span>
            {% endfor %}
        </p>
        <p>{{ form.remember_me() }} {{ form.remember_me.label }}</p>
        <p>{{ form.submit() }}</p>
    </form>
    {% endblock %}
#}